package easy

func MinDeletionSize(strs []string) int {
	col := len(strs[0])
	row := len(strs)
	count := 0
	for i := 0; i < col; i++ {
		for j := 1; j < row; j++ {
			if strs[j][i] < strs[j-1][i] {
				count++
				break
			}
		}
	}
	return count
}
